import request from '../utils/request.js'

// 获取临时key
export const getCapchaRepeat = (data) => {
	return request.get({
		url: '/member/getCapchaRepeat',
		data
	})
}

// 根据时间 判断库存/member/getSkuNum data = {times,skuid}
export const getSkuNum = (data) => {
	return request.get({
		url: '/member/getSkuNum',
		data
	})
}

// 生成订单createOrder

export const createOrder = (data) => {
	return request.post({
		url: '/member/createOrder',
		methods:"POST",
		header:{
			"Content-Type":"application/json"
		},
		data
	})
}

// /member/getOrderList?tid=64&type=1&page=1
// 获取订单列表
export const getOrderList = (data) => {
	return request.get({
		url: '/member/getOrderList',
		data
	})
}